﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ExamSystem.Mdeol;
using ExamSystem.DAL;
namespace ExamSystem.BLL
{
    public class TkechengBLL
    {
        private TckechengDAL tb = new TckechengDAL();
        /// <summary>
        /// 添加课程
        /// </summary>
        public int inserttckecheng(string tkname)
        {
            return tb.inserttckecheng(tkname);
        }


         /// <summary>
        /// 根据名称查询是否有数据
        /// </summary>
        public int selecttkcname(string tkcname)
        {
            return tb.selecttkcname(tkcname);
        }

         /// <summary>
        /// 查询课程信息
        /// </summary>
        public List<Tkecheng> selectkckecheng()
        {
            return tb.selectkckecheng();
        }


         /// <summary>
        /// 根据课程编号删除数据
        /// </summary>
        public int delete(int tkcid)
        {
            return tb.delete(tkcid);
        }


        /// <summary>
        /// 根据课程编号查询是否有数据
        /// </summary>
        public Tkecheng selecttkcid(int tcid)
        {
            return tb.selecttkcid(tcid);
        }



         /// <summary>
        /// 根据课程编号修改数据
        /// </summary>
        public int update(Tkecheng t)
        {
            return tb.update(t);
        }
    }
}